<template>
  <f7-page class="navebar">
    <f7-link icon-f7="chevron_left" class="onback" back></f7-link>
    <div class="hello">您好！欢迎登录</div>
    <f7-login-screen-title class="pingtai">
      广州市某某某某综合分析应用平台
    </f7-login-screen-title>
    <f7-card class="qm-card">
      <div class="account-mi">账号</div>
      <qm-search
        placeholder="请输入您的账号"
        v-model="user"
        label=""
        shape="round"
        clearable
        left-icon=""
      >
      </qm-search>
      <div class="account-mi" style="margin-top:15px">密码</div>
      <qm-search
        placeholder="请输入您的密码"
        v-model="password"
        :clearable="false"
        shape="round"
        left-icon=""
        :type="textstyle"
      >
        <template #right-icon>
          <img
            src="static/img/land/index1/biyan.svg"
            alt=""
            width="30px"
            height="12px"
            v-if="!showpassword"
            @click="modifypassword()"
          />
          <img
            src="static/img/land/index1/kaiyan.svg"
            alt=""
            width="30px"
            height="12px"
            v-else
            @click="modifypassword()"
          />
        </template>
      </qm-search>
      <f7-link class="qm-link">忘记密码？</f7-link>
      <f7-button raised fill round class="qm-button">登录</f7-button>
      <f7-button raised fill round class="qm-button2">立即注册</f7-button>
      <div class="footer">广州市齐明软件科技有限公司提供技术支持</div>
    </f7-card>
  </f7-page>
</template>

<script>
export default {
  data() {
    return {
      user: "",
      password: "",
      showpassword: false,
    };
  },
  computed: {
    textstyle() {
      if (this.showpassword) {
        return "text";
      } else {
        return "password";
      }
    },
  },
  methods: {
    modifypassword() {
      this.showpassword = !this.showpassword;
    },
  },
};
</script>

<style lang="less" scoped>
.onback{
  position: fixed;
  color: var(--color-fill-grey-inverse);
  margin-top: 10px;
  left: 6%;
  }
.navebar {
  background: url("../../../../static/img/land/index2/bgc2.png");
  background-repeat: no-repeat;
  margin: 0px;
  background-size: 100% calc(452px * var(--ratio));
  background-attachment: fixed;
  width: 100%;
  .hello {
    margin-top: calc(153px * var(--ratio));
    margin-left: calc(62px * var(--ratio));
    color: #d1e3ff;
    font-size: calc(35px * var(--ratio));
    text-align: left;
  }
  .pingtai {
    margin-left: calc(62px * var(--ratio));
    margin-right: calc(93px * var(--ratio));
    color: var(--color-fill-grey-inverse);
    font-size: calc(52px * var(--ratio));
    margin-top: calc(18px * var(--ratio));
    font-weight: 700;
    text-align: left;
    line-height: 30px;
  }
  .qm-card {
    margin-left: 0px;
    margin-right: 0px;
    position: relative;
    --f7-card-border-radius: 20px;
    --f7-card-margin-vertical:24px;
    text-align: end;
    padding: 0px calc(62px * var(--ratio));
    padding-top: 30px;
    .account-mi {
      color: #28282c;
      font-size: 14px;
      text-align: left;
    }
    /deep/ .van-field__right-icon{
      padding: 0 12px;
    }
    .qm-link {
      font-size: 13px;
      color: var(--color-brand);
      margin-bottom: calc(75px * var(--ratio));
    }
    .qm-button {
      background-color: var(--color-brand);
      font-size: var(--font-size-maintitle);
      --f7-button-raised-box-shadow: auto;
      margin-bottom: 15px;
      --f7-button-font-weight:400;
    }
    .qm-button2 {
      height: calc(96px * var(--ratio));
      line-height: calc(96px * var(--ratio));
      background-color: var(--color-fill-grey-inverse);
      color: var(--color-brand);
      font-size: var(--font-size-maintitle);
      --f7-button-raised-box-shadow: auto;
      border: 1px solid var(--color-brand);
      --f7-button-font-weight:400;
    }
    .footer {
      position: absolute;
      text-align: center;
      color: #959cb2;
      margin-top: 178px;
      font-size: 12px;
      left: 0px;
      right: 0px;
    }
  }
  /deep/ .van-cell {
    height: calc(90px * var(--ratio));
    line-height: calc(90px * var(--ratio));
    padding: 0px calc(20px * var(--ratio));
  }
  /deep/ .van-search {
    padding-left: 0px;
    padding-right: 0px;
  }
  /deep/ .van-search__content {
    background-color: #f1f4f8;
  }
  /deep/input:-webkit-autofill { box-shadow: 0 0 0px 1000px #f1f4f8 inset !important;}
}
</style>
